<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><spring:message code="app.name" /></title>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <link href="<%=basePath %>static/css/base.css" rel="stylesheet">
    <link href="<%=basePath %>static/css/platform.css" rel="stylesheet">
    <link rel="stylesheet" href="<%=basePath %>static/easyui/uimaker/easyui.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>static/easyui/uimaker/icon.css">
    <link rel="stylesheet" href="<%=basePath %>static/css/providers.css">

    <script type="text/javascript" src="<%=basePath %>static/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/easyui/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/validate/jquery.validate.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/validate/validate-extends.js"></script>
    <!--弹出层引入的JS-->
    <script type="text/javascript" src="<%=basePath %>static/layer-v3.0.3/layer/layer.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/js/tools.js"></script>
    <script type="text/javascript" src="<%=basePath %>static/js/main.js"></script>
</head>
<body>
<div class="container">
    <div id="pf-hd">
        <div class="pf-logo">
            <img src="<%=basePath %>images/head_logo.png" style="height: 70px;" alt="logo"></a>
        </div>
        <div style="height:70px;line-height: 70px;width: 100px;float: right; ">
            <select style="background: #541770;padding: 2px;border: 1px solid #FFF;color:#FFF;" onchange="sLang(this)">
                <option value="zh_CN" <c:if test="${pageContext.response.locale=='zh_CN'}">selected</c:if>>中文</option>
                <option value="en_US" <c:if test="${pageContext.response.locale=='en_US'}">selected</c:if>>English</option>
            </select>
        </div>

        <div class="pf-user">
            <div class="pf-user-photo">
                <img src="<%=basePath %>static/images/main/user.png" alt="">
            </div>
            <h4 class="pf-user-name ellipsis" style="min-width:32px;">${user.loginaccount}</h4>
            <i class="iconfont xiala">&#xe607;</i>

            <div class="pf-user-panel">
                <ul class="pf-user-opt">
                    <!--
                        <li class="pf-modify-pwd">
                            <a href="<%=basePath %>system/user/changepassword">
                                <i class="iconfont">&#xe634;</i>
                                <span class="pf-opt-name"> <spring:message code="index.modifyPassword" /></span>
                            </a>
                        </li> -->
                    <li class="pf-logout">
                        <a href="<%=basePath %>logout">
                            <i class="iconfont">&#xe60e;</i>
                            <span class="pf-opt-name"><spring:message code="index.logout" /></span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div id="pf-bd">
        <!--左侧-->
        <div id="pf-sider">
            <h2 class="pf-model-name">
                <span class="iconfont">&#xe64a;</span>
                <span class="pf-name"><spring:message code="menu.name" /></span>
                <span class="toggle-icon"></span>
            </h2>

            <ul class="sider-nav">
                <li class="current">
                    <a href="javascript:;">
                        <span class="iconfont sider-nav-icon">&#xe674;</span>
                        <span class="sider-nav-title"><spring:message code="menu.system" /></span>
                        <i class="iconfont">&#xe642;</i>
                    </a>
                    <ul class="sider-nav-s">
                        <li class="active"><a href="javascript:void(0)" onclick="addTab('<spring:message code="system.info" />||main/info',this)"><spring:message code="system.info" /></a></li>
                        <shiro:hasRole name="admin">
                            <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.role" />||role/list',this)"><spring:message code="menu.role" /></a></li>
                            <li><a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.user" />||user/list',this)"><spring:message code="menu.user" /></a></li>
                        </shiro:hasRole>
                    </ul>
                </li>

                <li>
                    <a href="javascript:;" onclick="addTab('<spring:message code="menu.kpi.awb.name" />||kpi/list',this)">
                        <span class="iconfont sider-nav-icon">&#xe69c;</span>
                        <span class="sider-nav-title"><spring:message code="menu.kpi.awb.name" /></span>
                    </a>
                </li>
                <li>
                    <a href="javascript:;" onclick="addTab('<spring:message code="menu.kpi.man.name" />||man/list',this)">
                        <span class="iconfont sider-nav-icon">&#xe6b7;</span>
                        <span class="sider-nav-title"><spring:message code="menu.kpi.man.name" /></span>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.billcheck" />||olapxmldoc/showlist',this)">
                        <span class="iconfont sider-nav-icon">&#xe6e0;</span>
                        <span class="sider-nav-title"><spring:message code="menu.billcheck" /></span>
                    </a>
                </li>

                <%--<li>--%>
                    <%--<a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.handlebill" />||handlebill/list',this)">--%>
                        <%--<span class="iconfont sider-nav-icon">&#xe620;</span>--%>
                        <%--<span class="sider-nav-title"><spring:message code="menu.handlebill" /></span>--%>
                    <%--</a>--%>
                <%--</li>--%>

                <%--<li>--%>
                    <%--<a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.track" />||tracking/list',this)">--%>
                        <%--<span class="iconfont sider-nav-icon">&#xe6a4;</span>--%>
                        <%--<span class="sider-nav-title"><spring:message code="menu.track" /></span>--%>
                    <%--</a>--%>
                <%--</li>--%>
                <%--<li>--%>
                <%--<a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.track" />||tracking/list',this)">--%>
                <%--<span class="iconfont sider-nav-icon">&#xe6a4;</span>--%>
                <%--<span class="sider-nav-title"><spring:message code="menu.track" /></span>--%>
                <%--</a>--%>
                <%--</li>--%>


                <li>
                    <a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.premanifest" />||olapdata/showlist',this)">
                        <span class="iconfont sider-nav-icon">&#xe6c3;</span>
                        <span class="sider-nav-title"><spring:message code="menu.premanifest" /></span>
                    </a>
                </li>

                <li>
                    <a href="javascript:void(0)" onclick="addTab('<spring:message code="menu.shunt" />||messagebak/showlist',this)">
                        <span class="iconfont sider-nav-icon">&#xe69e;</span>
                        <span class="sider-nav-title"><spring:message code="menu.shunt" /></span>
                    </a>
                </li>
            </ul>
        </div>
        <style>
            .tabs-panels{
                padding:10px 5px 5px 10px;
                background-color:#f5f5f5;
            }
        </style>
